asc = int(input())
ch = input()
print(f"{chr(asc)} {ord(ch)}")
